package com.zzhrtech.wgzx_cityzen.beans.contact;

import java.util.List;

/**
 * Created by renxiangpeng on 16/9/18.
 */
public class JifenDhBean {

    String code;
    String msg;
    List<Data> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data{

        String gc_id;
        String good_id;
        String truename;
        String phone;
        String address;

        String good_img;
        String good_imgth;
        String good_name;
        String good_detail;
        //价值
        String good_num;

        String jifenText;

        String shijian;
        String status;
        String good_sort;
        String code;
        String statusString;

        public void setJifenText(String jifenText) {
            this.jifenText = jifenText;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public void setStatusString(String statusString) {
            this.statusString = statusString;
        }

        public String getGood_sort() {
            return good_sort;
        }

        public void setGood_sort(String good_sort) {
            this.good_sort = good_sort;
        }

        public String getShijian() {
            return shijian;
        }

        public void setShijian(String shijian) {
            this.shijian = shijian;
        }

        public String getStatus() {
            return status;
        }

        public String getStatusString() {
            return getStatus().equals("1") ? "受理中" : getStatus().equals("2") ? "已撤销" : "已完成";
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getJifenText() {
            return "积分";
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getGc_id() {
            return gc_id;
        }

        public void setGc_id(String gc_id) {
            this.gc_id = gc_id;
        }

        public String getGood_id() {
            return good_id;
        }

        public void setGood_id(String good_id) {
            this.good_id = good_id;
        }

        public String getTruename() {
            return truename;
        }

        public void setTruename(String truename) {
            this.truename = truename;
        }

        public String getGood_img() {
            return good_img;
        }

        public void setGood_img(String good_img) {
            this.good_img = good_img;
        }

        public String getGood_imgth() {
            return good_imgth;
        }

        public void setGood_imgth(String good_imgth) {
            this.good_imgth = good_imgth;
        }

        public String getGood_name() {
            return good_name;
        }

        public void setGood_name(String good_name) {
            this.good_name = good_name;
        }

        public String getGood_detail() {
            return good_detail;
        }

        public void setGood_detail(String good_detail) {
            this.good_detail = good_detail;
        }

        public String getGood_num() {
            return good_num;
        }

        public void setGood_num(String good_num) {
            this.good_num = good_num;
        }
    }

    public boolean isSuccess(){
        return code.equals("0");
    }

}
